﻿@model TestUp.Models.AdminModels.EditGroupModel

@{
    ViewBag.Title = "Edit Group";
    Layout = "~/Views/Admin/_AdminLayout.cshtml";
}

<h2>Edit Group</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Group</legend>
        
        @Html.HiddenFor(model=>model.Group.GroupId)

        <div class="k-label">
            @Html.LabelFor(model => model.Group.GroupName)
        </div>
        <div class="k-textbox">
            @Html.EditorFor(model => model.Group.GroupName)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div class="k-button">
    @Html.ActionLink("Back to List", "ViewGroups")
</div>
